package com.sos.model.dto;

import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class SosRequestDTO {
    @NotNull(message = "纬度不能为空")
    @DecimalMin(value = "-90.0", message = "纬度格式不正确")
    private BigDecimal latitude;

    @NotNull(message = "经度不能为空")
    @DecimalMin(value = "-180.0", message = "经度格式不正确")
    private BigDecimal longitude;

    private String locationDesc;

    @NotBlank(message = "求助内容不能为空")
    private String content;

    @NotNull(message = "求助类型不能为空")
    private Integer type; // 1:医疗 2:事故 3:治安 4:其他
}